@extends('layout.master')

@section('title')
    Category - Product
@stop

@section('username')
   {{ Auth::user()->userName }} 
@stop

@section('header')
    @parent
@stop

@section('content')
    <h3>
        {{ $category }}

        <?php 
             $status = Session::get('status');

            if(!empty($status))
            {
                 echo "<div class='alert alert-success span5' style='float:right'> $status </div>";
            }
        ?>
    </h3> <hr />

    <ul class="album-list">
        @foreach($list as $item => $key)
            <li><a href="/product/view/{{ $key->id }}">
                <div class="thumbnail span1">
                    <img alt="album.Title" src="/img/products/{{$key->image_url}}" />
                 </div>
                 <span> {{ $key->productName }} </span> </a>
            </li>
        @endforeach
    </ul>
@stop